<?php

namespace App\Http\Requests\User;

use App\Http\Requests\ApiRequest;

class UserStoreRequest extends ApiRequest
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'user.first_name' => 'required|string',
            'user.last_name' => 'nullable|string',
            'user.email' => 'nullable|email',
            'user.username' => 'required|string',
            'user.password' => 'required|string',
        ];
    }
}
